package scauCmiScaffolding.compiled;

import org.eclipse.jet.JET2Context;
import org.eclipse.jet.JET2Template;
import org.eclipse.jet.JET2Writer;
import org.eclipse.jet.taglib.RuntimeTagElement;
import org.eclipse.jet.taglib.TagInfo;

public class _jet_findEntityByPhysicalPrimaryKey_0 implements JET2Template {
    private static final String _jetns_c = "org.eclipse.jet.controlTags"; //$NON-NLS-1$
    private static final String _jetns_java = "org.eclipse.jet.javaTags"; //$NON-NLS-1$

    public _jet_findEntityByPhysicalPrimaryKey_0() {
        super();
    }

    private static final String NL = System.getProperty("line.separator"); //$NON-NLS-1$
    
    private static final TagInfo _td_java_format_1_1 = new TagInfo("java:format", //$NON-NLS-1$
            1, 1,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_get_3_9 = new TagInfo("c:get", //$NON-NLS-1$
            3, 9,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_3_64 = new TagInfo("c:get", //$NON-NLS-1$
            3, 64,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_iterate_3_135 = new TagInfo("c:iterate", //$NON-NLS-1$
            3, 135,
            new String[] {
                "select", //$NON-NLS-1$
                "var", //$NON-NLS-1$
            },
            new String[] {
                "$eachTable/physicalPrimaryKeys/column", //$NON-NLS-1$
                "physicalKey", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_choose_3_211 = new TagInfo("c:choose", //$NON-NLS-1$
            3, 211,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_when_3_221 = new TagInfo("c:when", //$NON-NLS-1$
            3, 221,
            new String[] {
                "test", //$NON-NLS-1$
            },
            new String[] {
                "$physicalKey/@order=$phycolCount", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_3_269 = new TagInfo("c:get", //$NON-NLS-1$
            3, 269,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "($physicalKey/@javaType)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_3_312 = new TagInfo("c:get", //$NON-NLS-1$
            3, 312,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($physicalKey/@fieldUpper)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_otherwise_3_379 = new TagInfo("c:otherwise", //$NON-NLS-1$
            3, 379,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_get_3_392 = new TagInfo("c:get", //$NON-NLS-1$
            3, 392,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "($physicalKey/@javaType)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_3_435 = new TagInfo("c:get", //$NON-NLS-1$
            3, 435,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($physicalKey/@fieldUpper)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_java_import_3_540 = new TagInfo("java:import", //$NON-NLS-1$
            3, 540,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_get_4_14 = new TagInfo("c:get", //$NON-NLS-1$
            4, 14,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_iterate_4_85 = new TagInfo("c:iterate", //$NON-NLS-1$
            4, 85,
            new String[] {
                "select", //$NON-NLS-1$
                "var", //$NON-NLS-1$
            },
            new String[] {
                "$eachTable/physicalPrimaryKeys/column", //$NON-NLS-1$
                "physicalKey", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_4_162 = new TagInfo("c:get", //$NON-NLS-1$
            4, 162,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($physicalKey/@fieldUpper)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_8_9 = new TagInfo("c:get", //$NON-NLS-1$
            8, 9,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_8_64 = new TagInfo("c:get", //$NON-NLS-1$
            8, 64,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_iterate_8_135 = new TagInfo("c:iterate", //$NON-NLS-1$
            8, 135,
            new String[] {
                "select", //$NON-NLS-1$
                "var", //$NON-NLS-1$
            },
            new String[] {
                "$eachTable/physicalPrimaryKeys/column", //$NON-NLS-1$
                "physicalKey", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_8_211 = new TagInfo("c:get", //$NON-NLS-1$
            8, 211,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "($physicalKey/@javaType)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_8_254 = new TagInfo("c:get", //$NON-NLS-1$
            8, 254,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($physicalKey/@fieldUpper)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_java_import_8_364 = new TagInfo("java:import", //$NON-NLS-1$
            8, 364,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_get_10_40 = new TagInfo("c:get", //$NON-NLS-1$
            10, 40,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_iterate_10_135 = new TagInfo("c:iterate", //$NON-NLS-1$
            10, 135,
            new String[] {
                "select", //$NON-NLS-1$
                "var", //$NON-NLS-1$
            },
            new String[] {
                "$eachTable/physicalPrimaryKeys/column", //$NON-NLS-1$
                "physicalKey", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_choose_10_211 = new TagInfo("c:choose", //$NON-NLS-1$
            10, 211,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_when_10_221 = new TagInfo("c:when", //$NON-NLS-1$
            10, 221,
            new String[] {
                "test", //$NON-NLS-1$
            },
            new String[] {
                "$physicalKey/@order=$phycolCount", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_10_269 = new TagInfo("c:get", //$NON-NLS-1$
            10, 269,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($physicalKey/@fieldUpper)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_otherwise_10_336 = new TagInfo("c:otherwise", //$NON-NLS-1$
            10, 336,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_get_10_349 = new TagInfo("c:get", //$NON-NLS-1$
            10, 349,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($physicalKey/@fieldUpper)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_11_12 = new TagInfo("c:get", //$NON-NLS-1$
            11, 12,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );

    public void generate(final JET2Context context, final JET2Writer __out) {
        JET2Writer out = __out;
        RuntimeTagElement _jettag_java_format_1_1 = context.getTagFactory().createRuntimeTag(_jetns_java, "format", "java:format", _td_java_format_1_1); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_java_format_1_1.setRuntimeParent(null);
        _jettag_java_format_1_1.setTagInfo(_td_java_format_1_1);
        _jettag_java_format_1_1.doStart(context, out);
        JET2Writer _jettag_java_format_1_1_saved_out = out;
        while (_jettag_java_format_1_1.okToProcessBody()) {
            out = out.newNestedContentWriter();
            out.write(NL);         
            out.write("\t@Transactional");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\tpublic ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_3_9 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_3_9); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_3_9.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_3_9.setTagInfo(_td_c_get_3_9);
            _jettag_c_get_3_9.doStart(context, out);
            _jettag_c_get_3_9.doEnd();
            out.write(" find");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_3_64 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_3_64); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_3_64.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_3_64.setTagInfo(_td_c_get_3_64);
            _jettag_c_get_3_64.doStart(context, out);
            _jettag_c_get_3_64.doEnd();
            out.write("ByPhysicalPrimaryKey(");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_iterate_3_135 = context.getTagFactory().createRuntimeTag(_jetns_c, "iterate", "c:iterate", _td_c_iterate_3_135); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_iterate_3_135.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_iterate_3_135.setTagInfo(_td_c_iterate_3_135);
            _jettag_c_iterate_3_135.doStart(context, out);
            while (_jettag_c_iterate_3_135.okToProcessBody()) {
                RuntimeTagElement _jettag_c_choose_3_211 = context.getTagFactory().createRuntimeTag(_jetns_c, "choose", "c:choose", _td_c_choose_3_211); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_choose_3_211.setRuntimeParent(_jettag_c_iterate_3_135);
                _jettag_c_choose_3_211.setTagInfo(_td_c_choose_3_211);
                _jettag_c_choose_3_211.doStart(context, out);
                JET2Writer _jettag_c_choose_3_211_saved_out = out;
                while (_jettag_c_choose_3_211.okToProcessBody()) {
                    out = out.newNestedContentWriter();
                    RuntimeTagElement _jettag_c_when_3_221 = context.getTagFactory().createRuntimeTag(_jetns_c, "when", "c:when", _td_c_when_3_221); //$NON-NLS-1$ //$NON-NLS-2$
                    _jettag_c_when_3_221.setRuntimeParent(_jettag_c_choose_3_211);
                    _jettag_c_when_3_221.setTagInfo(_td_c_when_3_221);
                    _jettag_c_when_3_221.doStart(context, out);
                    JET2Writer _jettag_c_when_3_221_saved_out = out;
                    while (_jettag_c_when_3_221.okToProcessBody()) {
                        out = out.newNestedContentWriter();
                        RuntimeTagElement _jettag_c_get_3_269 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_3_269); //$NON-NLS-1$ //$NON-NLS-2$
                        _jettag_c_get_3_269.setRuntimeParent(_jettag_c_when_3_221);
                        _jettag_c_get_3_269.setTagInfo(_td_c_get_3_269);
                        _jettag_c_get_3_269.doStart(context, out);
                        _jettag_c_get_3_269.doEnd();
                        out.write(" ");  //$NON-NLS-1$        
                        RuntimeTagElement _jettag_c_get_3_312 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_3_312); //$NON-NLS-1$ //$NON-NLS-2$
                        _jettag_c_get_3_312.setRuntimeParent(_jettag_c_when_3_221);
                        _jettag_c_get_3_312.setTagInfo(_td_c_get_3_312);
                        _jettag_c_get_3_312.doStart(context, out);
                        _jettag_c_get_3_312.doEnd();
                        _jettag_c_when_3_221.handleBodyContent(out);
                    }
                    out = _jettag_c_when_3_221_saved_out;
                    _jettag_c_when_3_221.doEnd();
                    RuntimeTagElement _jettag_c_otherwise_3_379 = context.getTagFactory().createRuntimeTag(_jetns_c, "otherwise", "c:otherwise", _td_c_otherwise_3_379); //$NON-NLS-1$ //$NON-NLS-2$
                    _jettag_c_otherwise_3_379.setRuntimeParent(_jettag_c_choose_3_211);
                    _jettag_c_otherwise_3_379.setTagInfo(_td_c_otherwise_3_379);
                    _jettag_c_otherwise_3_379.doStart(context, out);
                    JET2Writer _jettag_c_otherwise_3_379_saved_out = out;
                    while (_jettag_c_otherwise_3_379.okToProcessBody()) {
                        out = out.newNestedContentWriter();
                        RuntimeTagElement _jettag_c_get_3_392 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_3_392); //$NON-NLS-1$ //$NON-NLS-2$
                        _jettag_c_get_3_392.setRuntimeParent(_jettag_c_otherwise_3_379);
                        _jettag_c_get_3_392.setTagInfo(_td_c_get_3_392);
                        _jettag_c_get_3_392.doStart(context, out);
                        _jettag_c_get_3_392.doEnd();
                        out.write(" ");  //$NON-NLS-1$        
                        RuntimeTagElement _jettag_c_get_3_435 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_3_435); //$NON-NLS-1$ //$NON-NLS-2$
                        _jettag_c_get_3_435.setRuntimeParent(_jettag_c_otherwise_3_379);
                        _jettag_c_get_3_435.setTagInfo(_td_c_get_3_435);
                        _jettag_c_get_3_435.doStart(context, out);
                        _jettag_c_get_3_435.doEnd();
                        out.write(",");  //$NON-NLS-1$        
                        _jettag_c_otherwise_3_379.handleBodyContent(out);
                    }
                    out = _jettag_c_otherwise_3_379_saved_out;
                    _jettag_c_otherwise_3_379.doEnd();
                    _jettag_c_choose_3_211.handleBodyContent(out);
                }
                out = _jettag_c_choose_3_211_saved_out;
                _jettag_c_choose_3_211.doEnd();
                _jettag_c_iterate_3_135.handleBodyContent(out);
            }
            _jettag_c_iterate_3_135.doEnd();
            out.write(") throws ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_java_import_3_540 = context.getTagFactory().createRuntimeTag(_jetns_java, "import", "java:import", _td_java_import_3_540); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_java_import_3_540.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_java_import_3_540.setTagInfo(_td_java_import_3_540);
            _jettag_java_import_3_540.doStart(context, out);
            JET2Writer _jettag_java_import_3_540_saved_out = out;
            while (_jettag_java_import_3_540.okToProcessBody()) {
                out = out.newNestedContentWriter();
                out.write("org.springframework.dao.DataAccessException");  //$NON-NLS-1$        
                _jettag_java_import_3_540.handleBodyContent(out);
            }
            out = _jettag_java_import_3_540_saved_out;
            _jettag_java_import_3_540.doEnd();
            out.write("{");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\treturn find");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_4_14 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_4_14); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_4_14.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_4_14.setTagInfo(_td_c_get_4_14);
            _jettag_c_get_4_14.doStart(context, out);
            _jettag_c_get_4_14.doEnd();
            out.write("ByPhysicalPrimaryKey(");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_iterate_4_85 = context.getTagFactory().createRuntimeTag(_jetns_c, "iterate", "c:iterate", _td_c_iterate_4_85); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_iterate_4_85.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_iterate_4_85.setTagInfo(_td_c_iterate_4_85);
            _jettag_c_iterate_4_85.doStart(context, out);
            while (_jettag_c_iterate_4_85.okToProcessBody()) {
                out.write(" ");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_c_get_4_162 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_4_162); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_4_162.setRuntimeParent(_jettag_c_iterate_4_85);
                _jettag_c_get_4_162.setTagInfo(_td_c_get_4_162);
                _jettag_c_get_4_162.doStart(context, out);
                _jettag_c_get_4_162.doEnd();
                out.write(", ");  //$NON-NLS-1$        
                _jettag_c_iterate_4_85.handleBodyContent(out);
            }
            _jettag_c_iterate_4_85.doEnd();
            out.write(" -1, -1);");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t}");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t@Transactional");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\tpublic ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_8_9 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_8_9); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_8_9.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_8_9.setTagInfo(_td_c_get_8_9);
            _jettag_c_get_8_9.doStart(context, out);
            _jettag_c_get_8_9.doEnd();
            out.write(" find");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_8_64 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_8_64); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_8_64.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_8_64.setTagInfo(_td_c_get_8_64);
            _jettag_c_get_8_64.doStart(context, out);
            _jettag_c_get_8_64.doEnd();
            out.write("ByPhysicalPrimaryKey(");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_iterate_8_135 = context.getTagFactory().createRuntimeTag(_jetns_c, "iterate", "c:iterate", _td_c_iterate_8_135); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_iterate_8_135.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_iterate_8_135.setTagInfo(_td_c_iterate_8_135);
            _jettag_c_iterate_8_135.doStart(context, out);
            while (_jettag_c_iterate_8_135.okToProcessBody()) {
                RuntimeTagElement _jettag_c_get_8_211 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_8_211); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_8_211.setRuntimeParent(_jettag_c_iterate_8_135);
                _jettag_c_get_8_211.setTagInfo(_td_c_get_8_211);
                _jettag_c_get_8_211.doStart(context, out);
                _jettag_c_get_8_211.doEnd();
                out.write(" ");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_c_get_8_254 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_8_254); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_8_254.setRuntimeParent(_jettag_c_iterate_8_135);
                _jettag_c_get_8_254.setTagInfo(_td_c_get_8_254);
                _jettag_c_get_8_254.doStart(context, out);
                _jettag_c_get_8_254.doEnd();
                out.write(", ");  //$NON-NLS-1$        
                _jettag_c_iterate_8_135.handleBodyContent(out);
            }
            _jettag_c_iterate_8_135.doEnd();
            out.write(" int startResult, int maxRows) throws ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_java_import_8_364 = context.getTagFactory().createRuntimeTag(_jetns_java, "import", "java:import", _td_java_import_8_364); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_java_import_8_364.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_java_import_8_364.setTagInfo(_td_java_import_8_364);
            _jettag_java_import_8_364.doStart(context, out);
            JET2Writer _jettag_java_import_8_364_saved_out = out;
            while (_jettag_java_import_8_364.okToProcessBody()) {
                out = out.newNestedContentWriter();
                out.write("org.springframework.dao.DataAccessException");  //$NON-NLS-1$        
                _jettag_java_import_8_364.handleBodyContent(out);
            }
            out = _jettag_java_import_8_364_saved_out;
            _jettag_java_import_8_364.doEnd();
            out.write("{");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\ttry {");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t\tQuery query = createNamedQuery(\"find");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_10_40 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_10_40); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_10_40.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_10_40.setTagInfo(_td_c_get_10_40);
            _jettag_c_get_10_40.doStart(context, out);
            _jettag_c_get_10_40.doEnd();
            out.write("ByPhyscialPrimaryKey\", startResult, maxRows, ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_iterate_10_135 = context.getTagFactory().createRuntimeTag(_jetns_c, "iterate", "c:iterate", _td_c_iterate_10_135); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_iterate_10_135.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_iterate_10_135.setTagInfo(_td_c_iterate_10_135);
            _jettag_c_iterate_10_135.doStart(context, out);
            while (_jettag_c_iterate_10_135.okToProcessBody()) {
                RuntimeTagElement _jettag_c_choose_10_211 = context.getTagFactory().createRuntimeTag(_jetns_c, "choose", "c:choose", _td_c_choose_10_211); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_choose_10_211.setRuntimeParent(_jettag_c_iterate_10_135);
                _jettag_c_choose_10_211.setTagInfo(_td_c_choose_10_211);
                _jettag_c_choose_10_211.doStart(context, out);
                JET2Writer _jettag_c_choose_10_211_saved_out = out;
                while (_jettag_c_choose_10_211.okToProcessBody()) {
                    out = out.newNestedContentWriter();
                    RuntimeTagElement _jettag_c_when_10_221 = context.getTagFactory().createRuntimeTag(_jetns_c, "when", "c:when", _td_c_when_10_221); //$NON-NLS-1$ //$NON-NLS-2$
                    _jettag_c_when_10_221.setRuntimeParent(_jettag_c_choose_10_211);
                    _jettag_c_when_10_221.setTagInfo(_td_c_when_10_221);
                    _jettag_c_when_10_221.doStart(context, out);
                    JET2Writer _jettag_c_when_10_221_saved_out = out;
                    while (_jettag_c_when_10_221.okToProcessBody()) {
                        out = out.newNestedContentWriter();
                        RuntimeTagElement _jettag_c_get_10_269 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_10_269); //$NON-NLS-1$ //$NON-NLS-2$
                        _jettag_c_get_10_269.setRuntimeParent(_jettag_c_when_10_221);
                        _jettag_c_get_10_269.setTagInfo(_td_c_get_10_269);
                        _jettag_c_get_10_269.doStart(context, out);
                        _jettag_c_get_10_269.doEnd();
                        _jettag_c_when_10_221.handleBodyContent(out);
                    }
                    out = _jettag_c_when_10_221_saved_out;
                    _jettag_c_when_10_221.doEnd();
                    RuntimeTagElement _jettag_c_otherwise_10_336 = context.getTagFactory().createRuntimeTag(_jetns_c, "otherwise", "c:otherwise", _td_c_otherwise_10_336); //$NON-NLS-1$ //$NON-NLS-2$
                    _jettag_c_otherwise_10_336.setRuntimeParent(_jettag_c_choose_10_211);
                    _jettag_c_otherwise_10_336.setTagInfo(_td_c_otherwise_10_336);
                    _jettag_c_otherwise_10_336.doStart(context, out);
                    JET2Writer _jettag_c_otherwise_10_336_saved_out = out;
                    while (_jettag_c_otherwise_10_336.okToProcessBody()) {
                        out = out.newNestedContentWriter();
                        RuntimeTagElement _jettag_c_get_10_349 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_10_349); //$NON-NLS-1$ //$NON-NLS-2$
                        _jettag_c_get_10_349.setRuntimeParent(_jettag_c_otherwise_10_336);
                        _jettag_c_get_10_349.setTagInfo(_td_c_get_10_349);
                        _jettag_c_get_10_349.doStart(context, out);
                        _jettag_c_get_10_349.doEnd();
                        out.write(",");  //$NON-NLS-1$        
                        _jettag_c_otherwise_10_336.handleBodyContent(out);
                    }
                    out = _jettag_c_otherwise_10_336_saved_out;
                    _jettag_c_otherwise_10_336.doEnd();
                    _jettag_c_choose_10_211.handleBodyContent(out);
                }
                out = _jettag_c_choose_10_211_saved_out;
                _jettag_c_choose_10_211.doEnd();
                _jettag_c_iterate_10_135.handleBodyContent(out);
            }
            _jettag_c_iterate_10_135.doEnd();
            out.write(");");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t\treturn (");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_11_12 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_11_12); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_11_12.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_11_12.setTagInfo(_td_c_get_11_12);
            _jettag_c_get_11_12.doStart(context, out);
            _jettag_c_get_11_12.doEnd();
            out.write(") query.getSingleResult();");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t} catch (NoResultException nre) {");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t\treturn null;");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t}");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t}");  //$NON-NLS-1$        
            out.write(NL);         
            _jettag_java_format_1_1.handleBodyContent(out);
        }
        out = _jettag_java_format_1_1_saved_out;
        _jettag_java_format_1_1.doEnd();
        out.write("    ");  //$NON-NLS-1$        
    }
}
